package com.wkbb.common.enums;

public enum FaceTypeEnum {

    /**
     * 辅助人脸
     */
    ASSISTFACE(0,"辅助人脸"),
    /**
     * 正脸
     */
    JUSTFACE(1,"正脸"),
    /**
     * 左侧脸
     */
    LEFTFACE(2,"左侧脸"),
    /**
     * 右侧脸
     */
    RIGHTFACE(3,"右侧脸"),
    /**
     * 仰视脸
     */
    ADMIREFACE(4,"仰视脸"),
    /**
     * 未知
     */
    UNKNOWN_FACE(-1,"未知"),
    /**
     * 非人脸
     */
    NON_FACE(0,"非人脸"),
    /**
     * 旧优图
     */
    OLD_EXCELLENT_FACE(1,"旧优图"),
    /**
     * 新优图
     */
    NEW_EXCELLENT_FACE(2,"新优图"),
    /**
     * 阅面
     */
    READING_FACE(3,"阅面"),
    /**
     * 巨龙
     */
    DRAGON_FACE(4,"巨龙");

    private FaceTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (FaceTypeEnum faceTypeEnum : FaceTypeEnum.values()) {
            if (faceTypeEnum.getValue().intValue()==value) {
                return faceTypeEnum.getDesc();
            }
        }
        return null;
    }
}
